import {  queryWaterMarkApplicationPoList } from '@/services/watermark';

export default {
  namespace: 'watermark',
  state: {
    applicationPoList: [],
  },

  effects: {
    *queryWaterMarkApplicationPoList({ payload }, { call, put }) {
      const response = yield call(queryWaterMarkApplicationPoList, payload);
      yield put({
        type: 'savequeryWaterMarkApplicationPoList',
        payload: response.data || [],
      });
    },
  },
  reducers: {
    savequeryWaterMarkApplicationPoList(state, { payload }) {
      return {
        ...state,
        applicationPoList: payload,
      };
    },
  },
};